/*
 * @Author: Li Zengkun
 * @Date: 2022-09-26 19:37:26
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-26 19:40:19
 * @Description: 
 */

import axios from "axios";

const remove = (id, params) => axios.delete(`/seller/goods/${id}`, { params })

const add = (data) => axios.post(`/seller/goods`, data)

const edit = (id, data) => axios.put(`'/seller/goods/${id}`, data)

// 获取商品列表--后台管理系统
const getList = (params) => axios.get('/seller/goods/list', { params })

// 获取商品详情--后台管理系统
const info = (params) => axios.get('/seller/goods', { params })

export default {
    remove,
    add,
    edit,
    getList,
    info
}